package cn.ttxs.lib.base;

/**
 * Created by lenovo on 2017/6/29.
 */

public class BaseEvent {
    /**
     * 具体类型参照AppEvent
     */
    private int code;
    //event名称
    private String name;
    private Object object;
    private int result_1;


    public BaseEvent(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public BaseEvent(int code) {
        this.code = code;
    }

    public BaseEvent(int code, String name, Object object) {
        this.code = code;
        this.name = name;
        this.object = object;
    }

    public BaseEvent() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public BaseEvent(int code, String name, Object object, int result_1) {
        this.code = code;
        this.name = name;
        this.object = object;
        this.result_1 = result_1;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public int getResult_1() {
        return result_1;
    }

    public void setResult_1(int result_1) {
        this.result_1 = result_1;
    }

    @Override
    public String toString() {
        return "code:" + code + "\t name:" + name;
    }
}
